<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sj" tagdir="/WEB-INF/tags/spring-jquery-tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<script type="text/javascript">
	$(document).ready(function() {
		$("#editFieldofficeForm").validate({
			rules : {
				name : {
					required : true
				}
			}
		});
	});
</script>
<div id="editFieldofficeDiv">
	<div id="menu-heading">
		<spring:message code="editFieldoffice.heading" />
	</div>
	<form:form name="editFieldofficeForm" id="editFieldofficeForm" action="saveFieldoffice.do" method="post" modelAttribute="fieldoffice">
		<form:hidden path="id" />
		<table>
			<tr class="row">
				<td class="label">&nbsp;</td>
				<td class="input-field" colspan="2">
					<%@ include file="/common/messages.jsp" %>
				</td>
			</tr>
			<tr class="row">
				<td class="label"><spring:message code="editFieldoffice.label.displayName" /></td>
				<td class="input-field"><form:input path="displayName" cssClass="input-full-width" /></td>
				<td><form:errors path="displayName" cssClass="error" /></td>
			</tr>
			<tr class="row">
				<td class="label"><spring:message code="editFieldoffice.label.description" /></td>
				<td class="input-field"><form:input path="description" cssClass="input-full-width" /></td>
				<td><form:errors path="description" cssClass="error" /></td>
			</tr>
			<tr class="row">
				<td class="label">&nbsp;</td>
				<td class="input-field"><sj:submit id="FieldofficeFormSubmit" target="editFieldofficeDiv" key="editFieldoffice.button.save" validate="true" /> <input type="reset" value="<spring:message code='editFieldoffice.button.cancel' />" /></td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</form:form>
</div>